@charset "utf-8";
@function r($p) {
    @return $p/640*100%;
}
html,body{
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.web {
    background: #ffbc3b;
    height: 100%;
}
//预加载
.reload{
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #ffbc3b;
    display: flex;
    align-items: center;
    z-index: 20;
}
.con {
    position: relative;
    display: inline-block;
    height: 100px;
    width: 100px;
    margin: 0 auto;
}
.percent-circle {
    position: absolute;
    height: 100%;
    background: chocolate;
    overflow: hidden;
}
.percent-circle-right {
    right: 0;
    width: 50px;
    border-radius: 0 50px 50px 0/0 50px 50px 0;
}
.percent-circle-right .right-content {
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    transform-origin: left center;
    transform: rotate(0deg);
    border-radius: 0 50px 50px 0/0 50px 50px 0;
    background: #bbb;
}
.percent-circle-left {
    width: 50px;
    border-radius: 50px 0 0 50px/50px 0 0 50px;
}
.percent-circle-left .left-content {
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    transform-origin: right center;
    transform: rotate(0deg);
    border-radius: 50px 0 0 50px/50px 0 0 50px;
    background: #bbb;
}
.text-circle {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80%;
    width: 80%;
    left: 10%;
    top: 10%;
    border-radius: 100%;
    background: #ffbc3b;
    color: #fff;
    font-size: 16px;
    font-family: arial;
}
//首页
.index{
    position: absolute;
    height: 100%;
    overflow: hidden;
    background: #ffbc3b;
    z-index: 8;
    display: flex;
    align-items: flex-end;
//  display: none;
}
.indexLogo {
    position: absolute;
    top: 13%;
    left: r(25);
    width: r(172);
    img {
        width: 100%;
    }
}
.content {
    width: 100%;
    max-height: 734px;
    position: relative;
    img {
        width: 100%;
    }
}
.play,.prizeList,.gameRule{
    position: absolute;
    left: r(25);
    width: r(197);
    img {
        width: 100%;
    }
}
.play{
    bottom: 29%;
}
.prizeList{
    bottom: 22%;
}
.gameRule{
    bottom: 15%;
}
.musicLogo {
    position: absolute;
    top: r(55);
    z-index: 10;
    width: 30px;
    height: 30px;
    img{
        width: 100%;
    }
}
.musicRotate{
    -webkit-animation-duration: 2s;
    animation-duration: 2s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-timing-function:linear;
    animation-timing-function:linear;
    -webkit-animation-name: rotate;
    animation-name: rotate;
    
}
@keyframes rotate{
    0%{
        transform: rotate(0);
    }
    100%{
        transform: rotate(360deg);
    }
}
//规则页面
.popPage{
    position: absolute;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background: rgba(0,0,0,0.8);
    top: 0;
    left: 0;
    z-index: 20;
    display: none;
}
.popPageBg{
    width: r(580);
    height: 0;
    padding-top: 117%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    >img{
        width: 100%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
    }
}
.ruleTit{
    position: absolute;
    top: 3%;
    left: 20%;
    width: 43%;
    img{
        width: 100%;
    }
}
.ruleContent{
    width: 66%;
    height: 77%;
    overflow: auto;
    position: absolute;
    top: 15%;
    left: 12%;
    img{
        width: 100%;
    }
}
.popClose{
    position: absolute;
    top: 3%;
    right: 1%;
    width: 12%;
    img{
        width: 100%;
    }
}
.ruleRank{
    position: absolute;
    top: 55%;
    right: 1%;
    width: 16%;
    img{
        width: 100%;
    }
}
.ruleStart{
    position: absolute;
    top: 77%;
    right: 1%;
    width: 16%;
    img{
        width: 100%;
    }
}
//获奖页面
.rank{
    position: absolute;
    width: 16%;
    right: 1%;
    img{
        width: 100%;
    }
}
.rank1{
    top: 20%;
}
.rank2{
    top: 40%;
}
.rank3{
    top: 58%;
}
.rank4{
    top: 78%;
}
.rankContent{
    width: 66%;
    height: 77%;
    overflow: auto;
    position: absolute;
    top: 15%;
    left: 12%;
    ul li{
        font-size: 16px;
        color: #795949;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 10px;
        img{
            width: 30px;
            margin: 0 10px 0 20px;
        }
        .userInfo{
            display: flex;
            align-items: center;
        }
        .userName{
            overflow: hidden;
            text-overflow:ellipsis;
            white-space: nowrap;
            width: 70px;
        }
    }
}
//游戏页面-不用定位
.gamePage{
    background: #ffbc3b;
    width: 4000px;
    height: 100%;
    position: absolute;
}
.gamebg{
    font-size: 0;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}
.gamebgImg{
    height: 100%;
    display: inline-block;
    img{
        height: 100%;
    }
}

.score{
    width: 120px;
    height: 62px;
    background: url(../img/Mc_bg_score.png) bottom no-repeat;
    background-size: cover;
    position: absolute;
    top: r(50);
    left: 20px;
    z-index: 6;
    color: white;
    text-align: right;
    font-size: 24px;
    padding-right: 30px;
    line-height: 62px;
}
.life{
    width: 100px;
    position: absolute;
    top: r(65);
    left: 200px;
    z-index: 6;
}
.lifeItem{
    width: 30px;
    height: 30px;
    margin-right: 3px;
    display: inline-block;
    img{
        width: 100%;
    }
}
.people{
    width: 60px;
    height: 100px;
    background: url(../img/Mc_player1.png) bottom no-repeat;
    background-size: cover;
    position: absolute;
    top: 300px;
    left: -60px;
    z-index: 5;
}
.run{
    -webkit-animation-duration: 0.4s;
    animation-duration: 0.4s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-name: run;
    animation-name: run;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    animation-timing-function: step-end;
}
.roll{
    -webkit-animation-duration: 1.3s;
    animation-duration: 1.3s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-name: roll;
    animation-name: roll;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}
.firstRoad{
    position: absolute;
    top: 400px;
    left: 0;
    z-index: 3;
    width: 350px;
    height: 23px;
    background: url(../img/Mc_pedal1.png) bottom no-repeat;
    background-size: cover;
}
.road{
    position: absolute;
    top: 400px;
    left: 500px;
    z-index: 3;
}
.roadItem{
    width: 350px;
    height: 23px;
    background: url(../img/Mc_pedal1.png) bottom no-repeat;
    background-size: cover;
}
.roadGift{
    width: 50px;
    height: 50px;
    position: absolute;
    z-index: 3;
    img{
        width: 100px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
    }
}
.roadStone{
    width: 30px;
    height: 32px;
    position: absolute;
    z-index: 3;
    img{
        width: 100%;
    }
}
//结束页面
.finishPage{
    position: absolute;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background: rgba(0,0,0,0.8);
    top: 0;
    left: 0;
    z-index: 10;
    display: none;
}
.advertise{
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    img{
        width: 100%;
    }
}
.scoreBg{
    position: relative;
    img{
        width: 100%;
    }
}
.endScore{
    position: absolute;
    top: 42%;
    width: 100%;
    text-align: center;
    font-size: 74px;
    color: #e32424;
    font-weight: bolder;
}
.finishBtn{
    width: 100%;
    position: absolute;
    text-align: center;
    top: 55%;
    p{
        font-size: 14px;
        color: white;
    }
}
.rePlay{
    display: inline-block;
    width: r(120);
    margin-right: 15px;
    img{
        width: 100%;
    }
}
.ranking{
    display: inline-block;
    width: r(120);
    margin-right: 15px;
    img{
        width: 100%;
    }
}
.share{
    display: inline-block;
    width: r(120);
    img{
        width: 100%;
    }
}
.signUp{
    margin: r(10) auto r(30);
    width: r(525);
    img{
        width: 100%;
    }
}
.sharePage{
    position: absolute;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background: rgba(0,0,0,0.8);
    top: 0;
    left: 0;
    z-index: 15;
    display: none;
}
.shareTip{
    position: absolute;
    top: 30px;
    right: 20px;
    width: r(356);
    img{
        width: 100%;
    }
}


//游戏动画
//跑步
@keyframes run{
    0%{
        background: url(../img/Mc_player1.png) bottom no-repeat;
        background-size: cover;
    }
    20%{
        background: url(../img/Mc_player2.png) bottom no-repeat;
        background-size: cover;
    }
    40%{
        background: url(../img/Mc_player3.png) bottom no-repeat;
        background-size: cover;
    }
    60%{
        background: url(../img/Mc_player4.png) bottom no-repeat;
        background-size: cover;
    }
    80%{
        background: url(../img/Mc_player5.png) bottom no-repeat;
        background-size: cover;
    }
    100%{
        background: url(../img/Mc_player6.png) bottom no-repeat;
        background-size: cover;
    }


}
@keyframes roll{
    0%{
        background: url(../img/Mc_player8.png) bottom no-repeat;
        background-size: cover;
        transform: rotate(0deg);
    }
    25%{
        background: url(../img/Mc_player8.png) bottom no-repeat;
        background-size: cover;
        transform: rotate(180deg);
    }
    50%{
        background: url(../img/Mc_player8.png) bottom no-repeat;
        background-size: cover;
        transform: rotate(360deg);
    }
    75%{
        background: url(../img/Mc_player8.png) bottom no-repeat;
        background-size: cover;
        transform: rotate(540deg);
    }
    100%{
        background: url(../img/Mc_player8.png) bottom no-repeat;
        background-size: cover;
        transform: rotate(720deg);
    }
}
